import {CHANGE_INPUT_VALUE, CHANGE_LIST, DELETE_TODOITEM } from "./actionTypes";

export const changeInputValue = (value) => ({
    type: CHANGE_INPUT_VALUE,
    value
})

export const changeList = (value) => ({
    type: CHANGE_LIST,
    value
})

export const deleteItem = (index) => ({
    type: DELETE_TODOITEM,
    index
})